<?
/*********************************************
*会员注册协议
* *******************************************/
function smarty_function_qishi_agreement($params, &$smarty)
{ 
extract($params);
global $db,$timestamp;
$id = (NULL != $id) ? $id : 1;
if (intval($id)!=$id) return false;
$sql = "select * from ".table('agreement')." WHERE id=".$id;
$val=$db->getone($sql);
$smarty->assign($listname, $val['content']);
unset($val);
}
?>